<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>

    <div class="example">
        <h2>标准</h2>
        <pre id="code" contenteditable="true">
        dialog.tips({
            close:true, // 是否关闭，可选，默认为 ture
            msg:'提示内容',
            time:1100, // 关闭时间 单位:毫秒 可选，默认为 1100
        });
    </pre>
        <a class="z-btn z-primary z-mat z-mal" onclick="new Function(code.innerHTML)();">运行</a>
    </div>


    <div class="dialog">
        <div class="title">标题</div>
        <div class="content">
            <p>1</p>
            <p>2</p>
            <p>3</p>
        </div>
    </div>

    <script src="./js/dialog.js"></script>
</body>

</html>